package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * The persistent class for the per_cwa_kpr database table.
 * 
 */
@Entity
@Table(name="per_cwa_kpr")
@NamedQuery(name="PerCwaKpr.findAll", query="SELECT p FROM PerCwaKpr p")
public class PerCwaKpr implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int kprid;

	private Timestamp kprtime;

	//bi-directional many-to-one association to PerCwaCwas
	@ManyToOne
	@JoinColumn(name="CWASID")
	private PerCwaCwas perCwaCwa;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="EMPID")
	private PerPmsEmp perPmsEmp;

	public PerCwaKpr() {
	}

	public int getKprid() {
		return this.kprid;
	}

	public void setKprid(int kprid) {
		this.kprid = kprid;
	}

	public Timestamp getKprtime() {
		return this.kprtime;
	}

	public void setKprtime(Timestamp kprtime) {
		this.kprtime = kprtime;
	}

	public PerCwaCwas getPerCwaCwa() {
		return this.perCwaCwa;
	}

	public void setPerCwaCwa(PerCwaCwas perCwaCwa) {
		this.perCwaCwa = perCwaCwa;
	}

	public PerPmsEmp getPerPmsEmp() {
		return this.perPmsEmp;
	}

	public void setPerPmsEmp(PerPmsEmp perPmsEmp) {
		this.perPmsEmp = perPmsEmp;
	}

}